#include<stdio.h>



int main()



{



	 int a,b,c,t=0;

  	scanf("%d,%d,%d",&a,&b,&c);
   	if (a > b&&a > c)
		t = a;
	else if (b > c&&b > a)
		t = b;
	else if(c > a&&c > b)
		t = c;
	else
		t = a;
	printf("%d,%d,%d\n",a,b,c);
	return 0;

}
